#ifndef TWITTERCONTEXT_P_H
#define TWITTERCONTEXT_P_H

#include "utils/OAuthClient.h"
#include <QNetworkAccessManager>
#include <QByteArray>
#include <QObject>

namespace Twitter
{
	class TwitterContext;
	class TwitterContextPrivate : public QObject
	{
		Q_OBJECT

		const static QString Validate_RequestToken_URL;
		const static QString OAuth_Request_Token;
		const static QString OAuth_Access_Token;

		public:
			~TwitterContextPrivate(){}
			bool setup();
		private:
			TwitterContextPrivate(const QByteArray&,TwitterContext*);
			TwitterContext* m_pImpl;

			int i_tweetTimeStamp;
			bool b_inited;

			TWUtils::OAuthClient	m_client;
			QNetworkAccessManager	m_manager;

		private slots:
			void networkFinished(QNetworkReply*){}

			friend class TwitterContext;
	};
}
#endif // MINIBLOGCONTEXT_P_H
